home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
333_02
/
p090.awk
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1989-04-21
|
332 b
|
16 lines
# prep1 - prepare countries by continent and pop. den.
BEGIN { FS = "\t+"; tmpname = "tmp.$$$" }
{
printf("%s:%s:%d:%d:%.1f\n",
$4, $1, $3, $2, 1000 * $3 / $2) > tmpname
}
END {
close(tmpname)
system(sprintf("sort < %s", tmpname))
system(sprintf("del %s", tmpname))
}